FROM amazoncorretto:11.0.17-alpine3.16

LABEL maintainer="sunhcug@outlook.com"
RUN apk add tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone \
    && apk del tzdata
COPY ./roc-core/target/*.jar /jars/app.jar
WORKDIR /jars

EXPOSE 8080
ENV TZ=Asia/Shanghai
ENV LANG C.UTF-8
ENTRYPOINT ["java"]
CMD ["-jar", "/jars/app.jar","-Dspring.profiles.active=prod"]